package com.wei.health.model.vo;

import lombok.Getter;
import org.springframework.web.bind.annotation.ControllerAdvice;


@Getter
public class BusinessException extends RuntimeException {

	private final R r;

	public BusinessException() {
		r = R.budil().result(false).message("系统异常");
	}

	public BusinessException(String message) {
		r = R.budil().result(false).message(message);
	}

	public BusinessException(String path, String message) {
		r = R.budil().result(false).message(message).path(path);
	}

	public BusinessException(String message, Object data) {
		r = R.budil().result(false).message(message).data(data);
	}

}